"""
1.输入分钟
2.计算一天有多少分钟
3.一共有多少天
4.算出年份
5求当前的天数
6.输出
"""
# min = int(input())
# day_min = 24 * 60
# all_days = min //day_min
# years = all_days // 365
# cur_days = all_days % 365
# print(years)
# print(cur_days)

# #先输入一个四位数
# num = int(input())
# #个位
# gewei = num % 10
# #十位
# shiwei = num // 10 % 10
# #百位
# baiwei = num //100 % 10
# #千位
# qianwei = num // 1000
# #输出
# print(gewei)
# print(shiwei)
# print(baiwei)
# print(qianwei)
import math
#输入三个顶点坐标
x1, y1, x2, y2, x3, y3 = map(float,input().split(" "))
#计算三条边
a = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5
b = ((x1 - x3) ** 2 + (y1 - y3) ** 2) ** 0.5
c = ((x3 - x2) ** 2 + (y3 - y2) ** 2) ** 0.5
#求度数
A =math.degrees(math.acos((a * a - b * b - c * c) / (-2 * b * c)))
B =math.degrees(math.acos((b * b - a * a - c * c) / (-2 * a * c)))
C =math.degrees(math.acos((c * c - b * b - a * a) / (-2 * a * b)))
#输出结果
print(f'{A:.2f}')
print(f'{B:.2f}')
print(f'{C:.2f}')